package com.zrt.pad;

import java.util.List;

import com.zrt.pad.WslXsActivity.BodyListAdapter;
import com.zrt.pad.datasource.bean.GridItem;
import com.zrt.pad.padpos.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.TextView;
import android.widget.TextView.OnEditorActionListener;

public class WslDetailActivity extends Activity implements OnClickListener, OnItemClickListener,
OnItemLongClickListener, OnEditorActionListener{

	private List<GridItem> datasource;
	private ListView listbody;
	private BaseAdapter bodyListAdapter;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.wsldetailframe);
		findViewById(R.id.btnplutype).setOnClickListener(this);
		findViewById(R.id.btndelete).setOnClickListener(this);
		
		bodyListAdapter = new BodyListAdapter(this);
		listbody = (ListView) findViewById(R.id.listbody);
		listbody.setAdapter(bodyListAdapter);
	
		WslDetailActivity.this.datasource = null;
	}
	
	@Override
	public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onItemLongClick(AdapterView<?> parent, View view,
			int position, long id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onItemClick(AdapterView<?> parent, View view, int position,
			long id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
	}

	
}
